<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../res/vue.js"></script>
    <style>
        .active{
            color: red;
        }
        .greenColor{
            color: green;
        }
        .bigSize{
            font-size: 20px;
        }
    </style>
</head>
<body>
<script type="text/javascript">
</script>
<div id="app-1">
    <h1 v-if="ok">YES</h1>
    <h1 v-else>NO</h1>

    <template v-if="manyDom">
        <p>国人</p>
        <p>这是一个美丽的世界</p>
    </template>

    <div v-if=" type==='A' ">A</div>
    <div v-else-if=" type === 'B' ">B</div>
    <div v-else-if=" type === 'C' ">B</div>
    <div v-else> not A/B/C</div>

    <template v-if=" loginType == 'userName' ">
        <label>用户名</label><input type="input" name="userName" key="userName-input">
        <p>这个内容</p>
    </template>

    <template v-else>
        <label>邮箱</label><input type="input" name="email" key="email-input">
        <p>这个内容</p>
    </template>

    <div v-show="ok"> show me</div>

    <template v-show="ok">
        <p>hhh</p>
        <p>hhh2</p>
    </template>
</div>
</body>
<script type="text/javascript">
    var app = new Vue({
        el:'#app-1',
        data:{
            ok:true,
            manyDom:true,
            type:'K',
            loginType:'userName'
        }
    });
</script>
</html>